Telegram Group & Telegram Channel
Задача с кодом. ASCII-код символа в другом регистре

Создайте функцию, которая будет принимать в качестве аргумента единичный символ и возвращать код такого же символа, но в другом регистре.

Примеры:
код символа "A" - 65
код символа "a" - 97
counterpartCharCode("A") ➞ 97
counterpartCharCode("a") ➞ 65

Примечания:
- Аргумент всегда будет единичным символом.
- Не все символы имеют регистр (например, цифры). Если перевести символ в другой регистр невозможно, функция должна вернуть код самого символа.

Решение на нашем сайте.

#задача #coding



tg-me.com/pythonist_ru/2385
Create:
Last Update:

Задача с кодом. ASCII-код символа в другом регистре

Создайте функцию, которая будет принимать в качестве аргумента единичный символ и возвращать код такого же символа, но в другом регистре.

Примеры:
код символа "A" - 65
код символа "a" - 97
counterpartCharCode("A") ➞ 97
counterpartCharCode("a") ➞ 65

Примечания:
- Аргумент всегда будет единичным символом.
- Не все символы имеют регистр (например, цифры). Если перевести символ в другой регистр невозможно, функция должна вернуть код самого символа.

Решение на нашем сайте.

#задача #coding

BY Pythonist.ru - образование по питону


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonist_ru/2385

View MORE
Open in Telegram


Pythonist ru образование по питону Telegram | DID YOU KNOW?

Date: |

Find Channels On Telegram?

Telegram is an aspiring new messaging app that’s taking the world by storm. The app is free, fast, and claims to be one of the safest messengers around. It allows people to connect easily, without any boundaries.You can use channels on Telegram, which are similar to Facebook pages. If you’re wondering how to find channels on Telegram, you’re in the right place. Keep reading and you’ll find out how. Also, you’ll learn more about channels, creating channels yourself, and the difference between private and public Telegram channels.

How Does Bitcoin Work?

Bitcoin is built on a distributed digital record called a blockchain. As the name implies, blockchain is a linked body of data, made up of units called blocks that contain information about each and every transaction, including date and time, total value, buyer and seller, and a unique identifying code for each exchange. Entries are strung together in chronological order, creating a digital chain of blocks. “Once a block is added to the blockchain, it becomes accessible to anyone who wishes to view it, acting as a public ledger of cryptocurrency transactions,” says Stacey Harris, consultant for Pelicoin, a network of cryptocurrency ATMs. Blockchain is decentralized, which means it’s not controlled by any one organization. “It’s like a Google Doc that anyone can work on,” says Buchi Okoro, CEO and co-founder of African cryptocurrency exchange Quidax. “Nobody owns it, but anyone who has a link can contribute to it. And as different people update it, your copy also gets updated.”

Pythonist ru образование по питону from tw


Telegram Pythonist.ru - образование по питону
FROM USA